//
//  WCAImageDownloader.h
//  WeChatAssistant
//
//  Created by Guo Rui on 2017/11/24.
//  Copyright © 2017年 GR Harry. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^WCAImageDownloadCompletion)(UIImage *image, NSError *error);

@interface WCAImageDownloader : NSObject

+ (instancetype)sharedInstance;
- (void)downloadWithURL:(NSString *)url completionBlock:(WCAImageDownloadCompletion)completion;
- (void)cacelWithURL:(NSString *)url;

@end
